<template>
  <header class="top-bar">
    <h1>新闻网站</h1>
  </header>
</template>

<script setup>
// 顶部导航组件
</script>

<style scoped>
.top-bar {
  background-color: #35495e;
  color: white;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
  margin: 0;
  font-size: 1.8rem;
}
</style>
